#!/bin/sh
echo -e "Please make sure that CentOS DISK 1 is in your cdrom and mounted at /media/cdrom and press enter"
read
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
rpm -Uvh epel-release-6-7.noarch.rpm
yum install phpmyadmin
sed -i 's/Deny from All/#Deny from All/g' /etc/httpd/conf.d/phpMyAdmin.conf
service httpd reload

MyAddr=`ifconfig eth0 | grep "inet addr" | awk -F: '{ print $2 }' | awk '{ print $1 }'`
echo "Access phpmyadmin : http://$MyAddr/phpmyadmin/"
echo "Done!"
